package com.five.community.bean.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MailboxVo {
    private long id;
    private String vname;
    private String name;
    private String letterName;
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    private Date createDate;
    private boolean state;

    public MailboxVo(String vname, String name, String letterName, Date createDate, boolean state) {
        this.vname = vname;
        this.name = name;
        this.letterName = letterName;
        this.createDate = createDate;
        this.state = state;
    }
}
